package no.ntnu.fp.storage;

public class EasyLogin {

	private String username;
	private String password;
	
	public EasyLogin(String username, String password) {
		
		this.username = username;
		this.password = password;
	}
	public boolean isValidated(){
		UserPerson up = new UserPerson();
		
		for(UserPerson p : up.getUsers()){
			if(username == p.getUsername() && password == p.getPassword()){
				return true;
			}
		}
		return false;
	}
	
	
	
}
